package nkw;

import junit.framework.TestCase;

/**
 * Verifies that getDegreesToRealignGun() behaves correctly.
 * 
 * @author Noah Woodden
 */
public class TestBehaviorTwo extends TestCase {

  /**
   * Test the getDegreesToRealignGun() functionality.
   */
  public void testDegreesToRealignGun() {
    CompetitiveRobot robot = new CompetitiveRobot();

    assertEquals("Did not return -90 degrees as expected.", -90.0,
        robot.getDegreesToRealignGun(90, 180));
    assertEquals("Did not return 90 degrees as expected.", 90.0,
        robot.getDegreesToRealignGun(180, 90));
    assertEquals("Did not return -315 degrees as expected.", -315.0,
        robot.getDegreesToRealignGun(45, 360));
  }
}
